package com.ruoyi.project.medicinal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockPurchase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String purchaseId;//制单号
    private String providerId;//供应商ID
    private Double purchaseTradeTotalAmount;//采购批发总额
    private String status;//单据状态;1:未提交 2:待审核;3:审核通过;4审核未通过;5:作废;6:入库成功
    private Integer applyUserId;//申请人ID
    private String applyUserName;//申请人名称
    private String storageOptUser;//入库操作人
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date storageOptTime;//入库操作时间
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;//更新时间
    private String createBy;//创建人
    private String updateBy;//更新人
    private String examine;//审核信息

}
